<div id="responseEparam" class="none">
    <table class="table table-hover table-bordered"
           id="editResponseParamTable">
        <thead>
        <tr class="btn-main">
            <th class="w50"></th>
            <th>名称</th>
            <th class="w100">类型</th>
            <th class="w100">是否必须</th>
            <th class="w200">备注</th>
            <th class="w50">操作</th>
        </tr>
        </thead>
        <tr ng-repeat="item in model.responseParams track by $index">
            <td style="color: red;" class="p5">{{item.deep}} <input
                    type="hidden" name="deep" value="{{item.deep}}" ng-model="item.deep">
            </td>
            <td class="p5"><input class="form-control b0 no-b-s"
                                  style="padding-left: {{item.deep*10+ 'px'}}" type="text" name="name"
                                  ng-model="item.name" value="{{item.name}}" placeholder="参数名：必填">
            </td>
            <td class="w120 p5"><select name="type"
                                        class="form-control b0 no-b-s" ng-model="item.type">
                <option value="string" ng-selected="item.type=='string'">string</option>
                <option value="number" ng-selected="item.type=='number'">number</option>
                <option value="boolean" ng-selected="item.type=='boolean'">boolean</option>
                <option value="object" ng-selected="item.type=='object'">object</option>
                <option value="array" ng-selected="item.type=='array'">array</option>
                <option value="array[number]"
                        ng-selected="item.type=='array[number]'">array[number]
                </option>
                <option value="array[boolean]"
                        ng-selected="item.type=='array[boolean]'">array[boolean]
                </option>
                <option value="array[string]"
                        ng-selected="item.type=='array[string]'">array[string]
                </option>
                <option value="array[object]"
                        ng-selected="item.type=='array[object]'">array[object]
                </option>
                <option value="file" ng-selected="item.type=='file'">file</option>
            </select></td>
            <td class="p5"><select name="necessary"
                                   class="form-control b0 no-b-s" ng-model="item.necessary">
                <option value="true" ng-selected="item.necessary=='true'">true</option>
                <option value="false" ng-selected="item.necessary=='false'">false</option>
            </select></td>
            <td class="p5"><input class="form-control b0 no-b-s" type="text"
                                  name="remark" ng-model="item.remark" value="{{item.remark}}"
                                  placeholder="备注"></td>
            <td class="cursor text-danger p5"><i class="iconfont"
                                                 ng-click="deleteOneParamByParent('responseParams',$index,item.deep)">
                &#xe60e;</i> <i
                    class="iconfont"
                    ng-click="addOneParamByParent('responseParams',item.deep,$index)"
                    ng-if="item.type=='object' || item.type=='array[object]' || item.type=='array' ">&#xe604;</i>
            </td>
        </tr>
    </table>
    <button type="button"
            ng-click="modifyParam('responseEparam','responseParam',model,'responseParam')"
            class="btn btn-warning fr ml10">提交修改
    </button>
    <button type="button" ng-click="addOneParamByParent('responseParams')"
            class="btn btn-success fr ml10">添加
    </button>
    <button type="button"
            onclick="changeDisplay('responseParam','responseEparam')"
            class="btn btn-primary fr">返回
    </button>
</div>
<div class="input-group w" id="responseParam">
	<textarea class="form-control no-resize" ng-model="model.responseParam"
              rows="5" readonly placeholder="请点击“编辑”按钮编辑返回参数"></textarea>
    <div class="input-group-addon cursor btn-main"
         ng-click="editerParam('responseEparam','responseParam',model,'editResponseParamTable');">
        编辑
    </div>
</div>